package com.drug.util;

/**
 * 结果返回枚举
 */
public enum ResultEnum {
 
    // 错误码 错误信息
    UNKNOW_ERROR(-1, "系统错误"),
    FAIL(0, "失败"),
    SUCCESS(200, "成功");
 
    private int code;
    private String msg;
 
    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public int getCode() {
        return code;
    }
 
    public String getMsg() {
        return msg;
    }
}
